/*
 * Copyright (c) 2025 Industrial Software Feature Database
 */
package com.comac.ins.isfd.strategy;

import java.util.Date;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.comac.ins.isfd.mapper.CalculationExampleMapper;

@Component
public class CalculationExampleCalculation implements TableCalculationStrategy {
    private final CalculationExampleMapper baseMapper;

    @Autowired
    public CalculationExampleCalculation(CalculationExampleMapper baseMapper) {
        this.baseMapper = baseMapper;
    }

    @Override
    public Long calculate(Date startTime, Date endTime) {
        return baseMapper.calculate(startTime, endTime);
    }
}
